package cn.daniellee.plugin.pm.model;

import java.util.ArrayList;
import java.util.List;

public class PlayerData {

	private String name;

	private boolean enabled;

	private String contact;

	private List<String> introduction; // 编辑介绍时的缓存

	private boolean byTimes;

	private boolean showOffline;

	private int onlineMinutes;

	private int finishTimes;

	private long lastFinish;

	private String texture;

	public PlayerData(String name) {
		this.name = name;
		this.enabled = false;
		this.contact = "";
		this.introduction = new ArrayList<>();
		this.byTimes = false;
		this.showOffline = false;
		this.onlineMinutes = 0;
		this.finishTimes = 0;
		this.lastFinish = 0;
	}

	public PlayerData(String name, boolean enabled, String contact, List<String> introduction, boolean byTimes, boolean showOffline, int onlineMinutes, int finishTimes, long lastFinish, String texture) {
		this.name = name;
		this.enabled = enabled;
		this.contact = contact;
		this.introduction = introduction;
		this.byTimes = byTimes;
		this.showOffline = showOffline;
		this.onlineMinutes = onlineMinutes;
		this.finishTimes = finishTimes;
		this.lastFinish = lastFinish;
		this.texture = texture;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public List<String> getIntroduction() {
		return introduction;
	}

	public void setIntroduction(List<String> introduction) {
		this.introduction = introduction;
	}

	public boolean isByTimes() {
		return byTimes;
	}

	public void setByTimes(boolean byTimes) {
		this.byTimes = byTimes;
	}

	public boolean isShowOffline() {
		return showOffline;
	}

	public void setShowOffline(boolean showOffline) {
		this.showOffline = showOffline;
	}

	public int getOnlineMinutes() {
		return onlineMinutes;
	}

	public void setOnlineMinutes(int onlineMinutes) {
		this.onlineMinutes = onlineMinutes;
	}

	public int getFinishTimes() {
		return finishTimes;
	}

	public void setFinishTimes(int finishTimes) {
		this.finishTimes = finishTimes;
	}

	public long getLastFinish() {
		return lastFinish;
	}

	public void setLastFinish(long lastFinish) {
		this.lastFinish = lastFinish;
	}

	public String getTexture() {
		return texture;
	}

	public void setTexture(String texture) {
		this.texture = texture;
	}
}
